import service from '@/utils/request'

// 搜索调拨单
export function SearchAllotOrder(data) {
  return service.request({
    method: 'post',
    url: '/Aorder/selectByAll.do',
    data
  })
}

// 调拨信息上传
export function AllotStore(data) {
  return service.request({
    method: 'post',
    url: '/Aorder/insertAorderStorage.do',
    data
  })
}
// 查看所有调拨单
export function GetAllotOrder() {
  return service.request({
    method: 'get',
    url: '/Aorder/findAorder.do',
  })
}
// 查看所有调拨单
export function GetAllotOrderPage(data) {
  return service.request({
    method: 'post',
    url: '/Aorder/getAord',
    data
  })
}
// 删除调拨单
export function DelAllotOrder(data) {
  return service.request({
    method: 'get',
    url: '/Aorder/deleteAorderById.do?allotId='+data,
  })
}
// 根据ID查看调拨单
export function FindAllotOrderById(data) {
  return service.request({
    method: 'get',
    url: '/Aorder/findAorderAllById.do?allotId='+data,
  })
}
// 根据ID修改调拨单
export function UpdateAllotOrder(data) {
  return service.request({
    method: 'post',
    url: '/Aorder/updateAorderdetails.do',
    data
  })
}

// 提交调拨单
export function SubmitAllotOrder(data) {
  return service.request({
    method: 'get',
    url: '/Aorder/submitAddBuerStock.do?allotId='+data,
  })
}
